$(function(){
	$.ajax({
		url:"../../showTask.action",
		type:"post",
		dataType:"json",
		success:function(data)
		{
			console.log(data);
			for(var i=0;i<data.length;i++)
			{
				$("#body").append('<div class="col-md-3">'
						+'<div class="panel panel-info">'
						+'<div class="panel-heading ">'
						+'<a href="../../htm/task/corporateSponInfo.html?url='+data[i].taskid+'"><h3 class="text-center">'+data[i].taskname+'</h3></a>'
						+'</div>'
						+'<div class="panel-body">'
						+'<h4><span class="glyphicon glyphicon-time" aria-hidden="true">'+data[i].publishDate+'</span></h4><br/>'
						+'<h4><span class="glyphicon glyphicon-map-marker" aria-hidden="true">'+data[i].city+'</span></h4><br>'
						+'<button type="button" class="btn btn-success">校园推广</button>'
						+'</div>'
						+'<div class="panel-footer">'
						+'</div>'
						+'</div>');
			}
		}
	});
});